import type { GoodsResult } from '@/types/goods'
import { http } from '@/utils/http'

/*
 * @Author: zxh
 * @Date: 2024-07-05 16:46:33
 * @LastEditors: zxh
 * @LastEditTime: 2024-07-05 17:01:54
 * @Description: 请填写简介
 */
/**
 * 商品详情
 * @param id 商品id
 * @returns 11
 */
export const getGoodsByIdAPI = (id: string) => {
  return http<GoodsResult>({
    method: 'GET',
    url: '/goods',
    data: {
      id,
    },
  })
}
